SMAHB04700_[자동판정]문진지별 질문선택.xrw 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : 문진 질문은행
  4. * 설 명 :
  5. * 설 계 자 :
  6. * 작 성 자 :
  7. * 작 성 일 :
  8. * 수정이력 :
  9. * 기 타 :
  10. -->
  11. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  12. <xhtml:html xmlns:ex="http://www.comsquare.co.kr/xforms/excel" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:my="http://www.comsquare.co.kr/example" xmlns:ms="urn:schemas-microsoft-com:xslt" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:cs="http://www.comsquare.co.kr/xforms">
  13. <xhtml:head>
  14. <xhtml:title>문진지별 질문선택</xhtml:title>
  15. <model id="model1">
  16. <instance id="instance1">
  17. <root xmlns="">
  18. <main>
  19. <condition>
  20. <instcd/>
  21. <qrcl/>
  22. <wkdate/>
  23. <flag/>
  24. <inqrrptid/>
  25. <sexflag/>
  26. <rptclsf/>
  27. <cpinqrrptid/>
  28. <inqrqestid/>
  29. <langflag/>
  30. </condition>
  31. <list>
  32. <amqblist/>
  33. <amitlist/>
  34. <treevalue/>
  35. <amawlist/>
  36. </list>
  37. </main>
  38. <hidden>
  39. <dspcontrol>
  40. </dspcontrol>
  41. </hidden>
  42. <tmp>
  43. </tmp>
  44. <send>
  45. <amitlist/>
  46. <langlst/>
  47. </send>
  48. <disply>
  49. <qrcllst/>
  50. <langlst/>
  51. <rptqrcl>
  52. <trdpth/>
  53. <ajclscd/>
  54. <ajclsnm/>
  55. </rptqrcl>
  56. </disply>
  57. <init>
  58. <A0008list>
  59. <A0008>
  60. <cdnm/>
  61. <cdid/>
  62. </A0008>
  63. </A0008list>
  64. </init>
  65. </root>
  66. </instance>
  67. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  68. <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
  69. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  70. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  71. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  72. <script type="javascript" ev:event="xforms-ready">
  73. <![CDATA[
  74. fInit();
  75. // fAuthCheck(btn_save);
  76. // fDefaultSubmit();
  77. // fDefaultSet();
  78. // model.refresh();
  79. model.refresh();
  80. ]]>
  81. </script>
  82. <submission id="TRAHB04101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/langlst" resultref="/root/disply/langlst"/>
  83. <submission id="TRAHB04201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/langlst" resultref="/root/disply/langlist"/>
  84. <submission id="TRAHB04601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/condition" resultref="/root/disply/qrcllst"/>
  85. <submission id="TRAHB04604" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/condition" resultref="/root/main/list/amqblist"/>
  86. <submission id="TXAHB04701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/amitlist" resultref="/root/tmp"/>
  87. <submission id="TRAHB04702" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/condition" resultref="/root/disply/rptqrcl"/>
  88. <submission id="TRAHB04703" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/condition" resultref="/root/main/list/amitlist"/>
  89. <submission id="TXAHB04704" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/condition" resultref="/root/tmp"/>
  90. <submission id="TRAHB04605" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/condition" resultref="/root/main/list/amawlist"/>
  91. </model>
  92. <script type="javascript">
  93. <![CDATA[
  94. function fInit(){
  95. model.removeNodeset("/root/main/list/amqblist");
  96. model.removeNodeset("/root/main/list/amitlist");
  97. model.removeNodeset("/root/main/list/treevalue");
  98. model.removeNodeset("/root/disply/rptqrcl");
  99. var instcd = getUserInfo("dutplceinstcd");
  100. model.setValue("/root/main/condition/instcd",instcd);
  101. var sToday = getCurrentDate().toString();
  102. model.setValue("/root/main/condition/wkdate",sToday);
  103. model.setValue("/root/main/condition/qrcl","");
  104. model.setValue("/root/main/condition/inqrrptid","");
  105. model.setValue("/root/main/condition/sexflag","");
  106. model.setValue("/root/main/condition/sexflag","C");
  107. /* 문진지 콤보박스 세팅 */
  108. model.setValue("/root/main/condition/flag","QRFM")
  109. model.resetInstanceNode("/root/send/langlst");
  110. //model.removeNodeset("/root/send/langlst");
  111. model.copyNode("/root/send/langlst", "/root/main/condition");
  112. submit("TRAHB04201",false);
  113. // -- 문진언어 combo box에 setting
  114. // model.setValue("/root/main/condition/flag","LANG")
  115. // model.makeNode("/root/send/langlst");
  116. // model.copyNode("/root/send/langlst", "/root/main/condition");
  117. // submit("TRAHB04101",false); // 문진언어
  118. /* 질문은행 문진분류 콤보박스 세팅 */
  119. submit("TRAHB04601",false); // 문진분류
  120. }//fInit() END
  121. // ----------------------------------------------------
  122. // 질문은행 내용 조회
  123. // ----------------------------------------------------
  124. function fRetriveAmqbList()
  125. {
  126. var inqrrptid = model.getValue("/root/main/condition/inqrrptid");
  127. if(inqrrptid == ""){
  128. messageBox("문진지를 선택하세요", "E999"); return false;
  129. }else{
  130. model.removeNodeset("/root/main/list/amqblist");
  131. model.resetInstanceNode("/root/hidden/dspcontrol/amqbCurrow");
  132. submit("TRAHB04604",false); // 질문내용조회
  133. }
  134. }//fRetriveAmqbList end
  135. // ----------------------------------------------------
  136. // 문진지 질문내용 조회
  137. // ----------------------------------------------------
  138. function fRetriveAmitList(rowNum)
  139. {
  140. model.removeNodeset("/root/main/list/amitlist");
  141. model.resetInstanceNode("/root/hidden/dspcontrol/amawCurrow");
  142. var sInstcd;
  143. var sinqrid;
  144. var slangflag;
  145. sInstcd = grd_amqb.valueMatrix(rowNum, grd_amqb.colRef("amqb_instcd")) ;
  146. sinqrid = grd_amqb.valueMatrix(rowNum, grd_amqb.colRef("amqb_inqrqestid")) ;
  147. slangflag = grd_amqb.valueMatrix(rowNum, grd_amqb.colRef("amqb_langflag")) ;
  148. model.setValue("/root/send/subretrive/instcd",sInstcd);
  149. model.setValue("/root/send/subretrive/inqrqestid",sinqrid);
  150. model.setValue("/root/send/subretrive/langflag",slangflag);
  151. submit("TRAHB04605",true); // 질문내용조회
  152. }
  153. // ----------------------------------------------------
  154. // 그리드 Row 추가 삭제 - 추가 일경우 기본 데이타 세팅
  155. // ----------------------------------------------------
  156. function fAddDelRow(sGrd, sStatus)
  157. {
  158. var rowNum;
  159. if( sStatus == 'D'){
  160. deleteSelectedRows(grd_amit, true);
  161. }
  162. }
  163. // ----------------------------------------------------
  164. //화면 그리드 조절
  165. // ----------------------------------------------------
  166. function fGridWidthcontrol(sGrd,sStatus)
  167. {
  168. // 질문 내역 그리드를 늘릴때
  169. if ( sGrd == "amit") {
  170. if(sStatus == "W") {
  171. grd_amit.attribute ("width") ="1000px";
  172. grd_amqb.visible = false;
  173. }
  174. }
  175. // 질문은행 내역 그리드를 늘릴때
  176. if ( sGrd == "amqb") {
  177. if(sStatus == "W") {
  178. grd_amqb.visible = true;
  179. grd_amit.attribute ("width") = "330px";
  180. grd_amqb.attribute ("left") = "530px";
  181. grd_amqb.attribute ("width") = "655px";
  182. }
  183. }
  184. // 원래 그대로 돌아갈때
  185. if(sStatus == "N") {
  186. grd_amqb.visible = true;
  187. grd_amit.attribute ("width") = "480px";
  188. grd_amqb.attribute ("left") = "680px";
  189. grd_amqb.attribute ("width") = "505px";
  190. }
  191. }
  192. // ----------------------------------------------------
  193. //데이터 처리
  194. // ----------------------------------------------------
  195. function fSave() {
  196. model.setValue("/root/send/amitlist", grd_amit.getUpdateData());
  197. submit("TXAHB04701", false);
  198. }
  199. // ----------------------------------------------------
  200. // 문진지별 문진분류 조회
  201. // ----------------------------------------------------
  202. function fRetriveReportQuryClsf()
  203. {
  204. model.removeNodeset("/root/disply/rptqrcl");
  205. model.removeNodeset("/root/main/list/treevalue");
  206. submit("TRAHB04702",false);
  207. }
  208. // ----------------------------------------------------
  209. // 문진지별 질문내용 조회
  210. // ----------------------------------------------------
  211. function fRetriveQuryReport(clsfid)
  212. {
  213. model.removeNodeset("/root/main/list/amitlist");
  214. model.setValue("/root/main/condition/rptclsf", clsfid);
  215. submit("TRAHB04703",false);
  216. }
  217. // ----------------------------------------------------
  218. // 선택된 질문을 문진지에 추가
  219. // ----------------------------------------------------
  220. function fAddQueryToReport()
  221. {
  222. var rowQCnt;
  223. var sinstcd ;
  224. var sinqrqestid ;
  225. var sqestflag ;
  226. var sqesttitl ;
  227. var sqestcnts ;
  228. var sinqrrptid ;
  229. var sfromdd;
  230. rowQCnt = grd_amqb.Rows;
  231. sinqrrptid = model.getValue("/root/main/condition/inqrrptid");
  232. sfromdd = model.getValue("/root/main/condition/wkdate");
  233. if (sinqrrptid == "") {
  234. model.alert("문진지가 선택되지 않았습니다... 문진지를 선택해 주세요");
  235. return;
  236. }
  237. for(var i =1; i < rowQCnt ; i++){
  238. if ( grd_amqb.valueMatrix(i, grd_amqb.colRef("itemuseyn")) == "Y" ) {
  239. sinstcd = grd_amqb.valueMatrix(i, grd_amqb.colRef("amqb_instcd"));
  240. sinqrqestid = grd_amqb.valueMatrix(i, grd_amqb.colRef("amqb_inqrqestid"));
  241. sqestflag = grd_amqb.valueMatrix(i, grd_amqb.colRef("amqb_qestflag"));
  242. sqesttitl = grd_amqb.valueMatrix(i, grd_amqb.colRef("amqb_qesttitl"));
  243. sqestcnts = grd_amqb.valueMatrix(i, grd_amqb.colRef("amqb_qestcnts"));
  244. grd_amit.addrow();
  245. grd_amit.valueMatrix(grd_amit.row, grd_amit.colRef("amit_instcd")) = sinstcd ;
  246. grd_amit.valueMatrix(grd_amit.row, grd_amit.colRef("amit_inqrrptid") ) = sinqrrptid;
  247. grd_amit.valueMatrix(grd_amit.row, grd_amit.colRef("amit_inqrqestid")) = sinqrqestid ;
  248. grd_amit.valueMatrix(grd_amit.row, grd_amit.colRef("amit_qestflag")) = sqestflag ;
  249. grd_amit.valueMatrix(grd_amit.row, grd_amit.colRef("amit_qesttitl")) = sqesttitl ;
  250. grd_amit.valueMatrix(grd_amit.row, grd_amit.colRef("amit_qestcnts")) = sqestcnts ;
  251. grd_amit.valueMatrix(grd_amit.row, grd_amit.colRef("amit_fromdd")) = sfromdd;
  252. grd_amit.valueMatrix(grd_amit.row, grd_amit.colRef("amit_todd")) = '29991231';
  253. grd_amit.valueMatrix(grd_amit.row, grd_amit.colRef("amit_useyn")) = 'Y';
  254. grd_amit.valueMatrix(grd_amit.row, grd_amit.colRef("amit_prnseq")) = grd_amit.row;
  255. }
  256. }
  257. return 0;
  258. }//fAddQueryToReport END
  259. // ----------------------------------------------------
  260. // -- 문진지로 질문항목 Copy 기능
  261. // ----------------------------------------------------
  262. function fCopy() {
  263. var OrgRpt ;
  264. var CopRpt ;
  265. OrgRpt =model.getValue("/root/main/condition/inqrrptid");
  266. CopRpt =model.getValue("/root/main/condition/cpinqrrptid")
  267. if ( OrgRpt == "" ){model.alert("복사 할 원 문진지를 선택하여 주세요...","알림");return; }
  268. if ( CopRpt == "" ){model.alert("복사 할 대상 문진지를 선택하여 주세요...","알림");return; }
  269. if ( OrgRpt == CopRpt ) {model.alert("같은 문진지로 복사 할 수 없습니다...","알림");return; }
  270. submit("TXAHB04704", false);
  271. model.setValue("/root/main/condition/inqrrptid",CopRpt);
  272. fRetriveReportQuryClsf();
  273. model.refresh();
  274. }//fCopy end
  275. ]]>
  276. </script>
  277. </xhtml:head>
  278. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  279. <group id="group1" style="left:0px; top:0px; width:1190px; height:13px; ">
  280. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:500px; height:14px; ">[자동판정]문진지별 질문선택 관리1</caption>
  281. <caption id="caption1" style="left:225px; top:0px; width:300px; height:13px; font-weight:bold; color:#ff0000; ">* 문제와 답을 매핑하는 화면입니다.</caption>
  282. </group>
  283. <group id="grp_btn" style="left:0px; top:697px; width:1190px; height:28px; ">
  284. <button id="button1" class="btn4_letter2" disabled="false" style="left:1130px; top:3px; width:56px; height:22px; ">
  285. <caption>저장</caption>
  286. <script type="javascript" ev:event="DOMActivate">
  287. <![CDATA[
  288. fSave();
  289. fRetriveQuryReport("")
  290. model.refresh();
  291. ]]>
  292. </script>
  293. </button>
  294. <button id="button3" class="btn4_letter3" style="left:1055px; top:3px; width:68px; height:22px; ">
  295. <caption>초기화</caption>
  296. <script type="javascript" ev:event="DOMActivate">
  297. <![CDATA[
  298. window.reload();
  299. // fInit();
  300. // model.refresh();
  301. ]]>
  302. </script>
  303. </button>
  304. </group>
  305. <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1190px; height:682px; ">
  306. <datagrid id="grd_amqb" nodeset="/root/main/list/amqblist" autoresize="true" caption="선택^기관코드^문항ID^제목^질문내용^유형" colsep="^" colwidth="50, 0, 51, 78, 389, 50" rowheader="update" rowsep="|" style="left:685px; top:80px; width:500px; height:600px; ">
  307. <col checkvalue="Y,N" ref="itemuseyn" type="checkbox"/>
  308. <col ref="amqb_instcd" visibility="hidden"/>
  309. <col ref="amqb_inqrqestid" maxlength="10"/>
  310. <col ref="amqb_qesttitl"/>
  311. <col ref="amqb_qestcnts"/>
  312. <col disabled="true" ref="amqb_qestflag" type="combo">
  313. <choices>
  314. <item>
  315. <label>질문</label>
  316. <value>Q</value>
  317. </item>
  318. <item>
  319. <label>설명</label>
  320. <value>E</value>
  321. </item>
  322. </choices>
  323. </col>
  324. </datagrid>
  325. <script type="javascript" ev:event="onclick">
  326. <![CDATA[
  327. ]]>
  328. </script>
  329. <col ref="ajrm_rmhng"/>
  330. <group id="group5" style="left:185px; top:10px; width:1000px; height:40px; vertical-align:top; ">
  331. <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:1px; top:2px; width:999px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  332. <button id="btn_search" class="btn1_letter2" style="left:940px; top:7px; width:56px; height:22px; ">
  333. <caption>조회</caption>
  334. <script type="javascript" ev:event="DOMActivate">
  335. <![CDATA[
  336. fRetriveAmqbList();
  337. model.refresh();
  338. ]]>
  339. </script>
  340. </button>
  341. <line id="line2" style="x1:935px; y1:5px; x2:935px; y2:30px; border-color:#ffe4bb; border-left-style:solid; "/>
  342. <select1 id="combo4" ref="/root/main/condition/qrcl" class="combo_s_essential" appearance="minimal" style="left:625px; top:8px; width:175px; height:19px; ">
  343. <choices>
  344. <itemset nodeset="/root/disply/qrcllst">
  345. <label ref="cdnm"/>
  346. <value ref="cdid"/>
  347. </itemset>
  348. </choices>
  349. <script type="javascript" ev:event="xforms-value-changed">
  350. <![CDATA[
  351. //btn_search.dispatch("DOMActivate");
  352. // model.refresh();
  353. ]]>
  354. </script>
  355. </select1>
  356. <caption id="caption2" class="search_name" style="left:480px; top:8px; width:143px; height:17px; ">질문은행 문진분류 :</caption>
  357. <input id="input2" ref="/root/main/condition/wkdate" class="input_s_essential" inputtype="date" style="left:65px; top:10px; width:105px; height:19px; "/>
  358. <caption id="caption7" class="search_name" style="left:5px; top:10px; width:65px; height:17px; ">일자 :</caption>
  359. <select1 id="rdo_sexflag" ref="/root/main/condition/sexflag" overflow="visible" appearance="full" cols="3" style="left:800px; top:7px; width:135px; height:20px; border-style:none; ">
  360. <choices>
  361. <item>
  362. <label>남자</label>
  363. <value>M</value>
  364. </item>
  365. <item>
  366. <label>여자</label>
  367. <value>F</value>
  368. </item>
  369. <item>
  370. <label>공통</label>
  371. <value>C</value>
  372. </item>
  373. </choices>
  374. </select1>
  375. </group>
  376. <caption id="caption3" class="tit_2" style="left:684px; top:59px; width:87px; height:14px; ">질문은행</caption>
  377. <line id="line1" class="line_1" style="x1:0px; y1:75px; x2:180px; y2:75px; ">--화면 import 방법</line>
  378. <caption id="caption5" class="tit_2" style="left:5px; top:59px; width:126px; height:13px; ">문진지별 문진분류</caption>
  379. <button id="button5" class="icon_left" visibility="visible" style="left:1158px; top:55px; width:26px; height:19px; ">
  380. <caption/>
  381. <script type="javascript" ev:event="DOMActivate">
  382. <![CDATA[
  383. fGridWidthcontrol("amqb" ,"W");
  384. ]]>
  385. </script>
  386. </button>
  387. <button id="button8" class="icon_top_direction" visibility="visible" style="left:1131px; top:55px; width:26px; height:19px; ">
  388. <caption/>
  389. <script type="javascript" ev:event="DOMActivate">
  390. <![CDATA[
  391. fGridWidthcontrol("amqb" ,"N");
  392. ]]>
  393. </script>
  394. </button>
  395. <button id="button10" class="btn5_letter4" disabled="false" visibility="hidden" style="left:535px; top:55px; width:64px; height:19px; ">
  396. <caption>동일답안</caption>
  397. <script type="javascript" ev:event="DOMActivate">
  398. <![CDATA[
  399. fSameAnswSave();
  400. ]]>
  401. </script>
  402. </button>
  403. <datagrid id="grd_amit" nodeset="/root/main/list/amitlist" autoresize="true" caption="기관코드^문진지ID^문진분류^문항ID^질문번호^유형^제목^질문내용^필수여부^시작일^종료일^사용여부^출력순서^최초등록자^최종수정자" colsep="^" colwidth="0, 0, 100, 49, 73, 41, 100, 310, 60, 72, 70, 70, 70, 70, 70" rowheader="update" rowsep="|" style="left:185px; top:80px; width:495px; height:600px; ">
  404. <col ref="amit_instcd" visibility="hidden"/>
  405. <col ref="amit_inqrrptid" visibility="hidden"/>
  406. <col ref="amit_ajclscd" type="combo">
  407. <choices>
  408. <itemset nodeset="/root/disply/rptqrcl">
  409. <label ref="ajclsnm"/>
  410. <value ref="ajclscd"/>
  411. </itemset>
  412. </choices>
  413. </col>
  414. <col ref="amit_inqrqestid"/>
  415. <col ref="amit_qestno" type="input" visibility="hidden"/>
  416. <col disabled="true" ref="amit_qestflag" type="combo">
  417. <choices>
  418. <item>
  419. <label>질문</label>
  420. <value>Q</value>
  421. </item>
  422. <item>
  423. <label>설명</label>
  424. <value>E</value>
  425. </item>
  426. </choices>
  427. </col>
  428. <col ref="amit_qesttitl"/>
  429. <col ref="amit_qestcnts"/>
  430. <col checkvalue="Y,N" ref="amit_essnchoiflag" type="checkbox"/>
  431. <col ref="amit_fromdd" type="input"/>
  432. <col ref="amit_todd" type="input"/>
  433. <col checkvalue="Y,N" ref="amit_useyn" type="checkbox"/>
  434. <col ref="amit_prnseq" type="input" style="text-align:center; "/>
  435. <col ref="amit_fstrgstrid" style="text-align:center; "/>
  436. <col ref="amit_lastupdtrid" style="text-align:center; "/>
  437. <script type="javascript" ev:event="ondblclick">
  438. <![CDATA[
  439. if( grd_amit.col == grd_amit.colRef("amit_inqrqestid")){
  440. model.removeNodeset("/root/main/list/amawlist");
  441. model.setValue("/root/main/condition/inqrqestid", model.getValue("/root/main/list/amitlist['"+ grd_amit.row +"']/amit_inqrqestid"));
  442. model.setValue("/root/main/condition/langflag", "KOR");
  443. submit("TRAHB04605",false); // 질문내용조회
  444. grd_amaw.refresh();
  445. }
  446. ]]>
  447. </script>
  448. </datagrid>
  449. <button id="btn_delitem" class="btn2_letter3" style="left:626px; top:55px; width:53px; height:19px; ">
  450. <caption>행삭제</caption>
  451. <script type="javascript" ev:event="DOMActivate">
  452. <![CDATA[
  453. fAddDelRow("amit", "D");
  454. ]]>
  455. </script>
  456. </button>
  457. <button id="btn_additem" class="btn2_letter3" style="left:1050px; top:55px; width:53px; height:19px; ">
  458. <caption>보내기</caption>
  459. <script type="javascript" ev:event="DOMActivate">
  460. <![CDATA[
  461. fAddQueryToReport();
  462. ]]>
  463. </script>
  464. </button>
  465. <button id="button4" class="btn5_letter2" disabled="false" style="left:480px; top:55px; width:42px; height:19px; ">
  466. <caption>복사</caption>
  467. <script type="javascript" ev:event="DOMActivate">
  468. <![CDATA[
  469. fCopy("ALL","N");
  470. ]]>
  471. </script>
  472. </button>
  473. <button id="button6" class="btn2_letter4" visibility="hidden" style="left:885px; top:55px; width:64px; height:19px; ">
  474. <caption>미리보기</caption>
  475. <script type="javascript" ev:event="DOMActivate">
  476. <![CDATA[
  477. if (grd_lattrmqest.valueMatrix(grd_lattrmqest.row, grd_lattrmqest.colRef("itemid")) == ""){
  478. messageBox("선택된 문항이 없습니다.", "I", "");
  479. }else{
  480. model.setFocus("grd_item");
  481. grd_item.insertRow(grd_item.row, "below", true);
  482. grd_item.valueMatrix(grd_item.row, grd_item.colRef("itemid")) = grd_lattrmqest.valueMatrix(grd_lattrmqest.row, grd_lattrmqest.colRef("itemid"));
  483. }
  484. ]]>
  485. </script>
  486. </button>
  487. <select1 id="combo2" ref="/root/main/condition/cpinqrrptid" class="combo_s_essential" appearance="minimal" style="left:373px; top:55px; width:105px; height:19px; ">
  488. <choices>
  489. <itemset nodeset="/root/disply/langlst">
  490. <label ref="cdnm"/>
  491. <value ref="cdid"/>
  492. </itemset>
  493. </choices>
  494. </select1>
  495. <caption id="caption8" class="cell_1" style="left:316px; top:57px; width:54px; height:17px; ">문진지 :</caption>
  496. <button id="button7" class="icon_right" visibility="visible" style="left:1104px; top:55px; width:26px; height:19px; ">
  497. <caption/>
  498. <script type="javascript" ev:event="DOMActivate">
  499. <![CDATA[
  500. fGridWidthcontrol("amit" ,"W");
  501. ]]>
  502. </script>
  503. </button>
  504. <caption id="caption10" class="tit_2" style="left:185px; top:59px; width:126px; height:14px; ">문진지별 문제</caption>
  505. <treeview id="trvclsf" ref="/root/main/list/treevalue" buttoncolor="#ff00ff" expandedimage="tree_select.bmp" hasbuttons="true" hasimages="true" haslines="true" image="tree_normal.bmp" itemsettype="depth" linecolor="#0000ff" singleexpand="false" depth="3" style="left:0px; top:80px; width:180px; height:350px; font-family:돋움; ">
  506. <itemset nodeset="/root/disply/rptqrcl">
  507. <label ref="ajclsnm"/>
  508. <value ref="ajclscd"/>
  509. <depth ref="trdpth"/>
  510. </itemset>
  511. <script type="javascript" ev:event="onclick">
  512. <![CDATA[
  513. if( trvclsf.selectedindex == -1 ){
  514. messageBox("해당 아이템을 선택하세","I999");
  515. }else{
  516. fRetriveQuryReport(trvclsf.item(trvclsf.selectedindex).value);
  517. grd_amit.mergecol(1) = false;
  518. grd_amit.mergecol(2) = false;
  519. grd_amit.mergecol(4) = false;
  520. grd_amit.mergecol(5) = false;
  521. grd_amit.mergecol(6) = false;
  522. grd_amit.mergecol(7) = false;
  523. grd_amit.mergecol(8) = false;
  524. grd_amit.mergecol(9) = false;
  525. grd_amit.mergecol(10) = false;
  526. grd_amit.mergecol(11) = false;
  527. grd_amit.mergecol(12) = false;
  528. grd_amit.mergecol(13) = false;
  529. grd_amit.mergecol(14) = false;
  530. grd_amit.mergecol(15) = false;
  531. grd_amit.mergecells = "bycol";
  532. model.refresh();
  533. }
  534. ]]>
  535. </script>
  536. </treeview>
  537. <line id="line3" class="line_1" style="x1:185px; y1:75px; x2:680px; y2:75px; ">--화면 import 방법</line>
  538. <line id="line4" class="line_1" style="x1:685px; y1:75px; x2:1185px; y2:75px; ">--화면 import 방법</line>
  539. <group id="group3" style="left:0px; top:10px; width:180px; height:40px; ">
  540. <shape id="roundrect3" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:2px; width:180px; height:35px; "/>
  541. <select1 id="combo1" ref="/root/main/condition/inqrrptid" appearance="minimal" style="left:75px; top:10px; width:100px; height:19px; ">
  542. <choices>
  543. <itemset nodeset="/root/disply/langlst">
  544. <label ref="cdnm"/>
  545. <value ref="cdid"/>
  546. </itemset>
  547. </choices>
  548. <script type="javascript" ev:event="xforms-value-changed">
  549. <![CDATA[
  550. fRetriveReportQuryClsf();
  551. model.refresh();
  552. // fRetriveQuryReport();
  553. ]]>
  554. </script>
  555. </select1>
  556. <caption id="caption4" class="search_name" visibility="visible" style="left:2px; top:10px; width:86px; height:17px; ">문진지 :</caption>
  557. </group>
  558. <line id="line5" class="line_1" style="x1:0px; y1:450px; x2:180px; y2:450px; ">--화면 import 방법</line>
  559. <caption id="caption9" class="tit_2" style="left:0px; top:435px; width:126px; height:13px; ">답안</caption>
  560. <datagrid id="grd_amaw" nodeset="/root/main/list/amawlist" autoresize="true" caption="기관코드^질문ID^언어^답ID^제목^내용^순서^디폴트^추가질문1^추가질문2^추가질문3^요약" colsep="^" colwidth="0, 0, 0, 32, 0, 217, 35, 45, 140, 140, 140, 32" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:455px; width:180px; height:225px; ">
  561. <col ref="amaw_instcd" visibility="hidden"/>
  562. <col ref="amaw_inqrqestid" visibility="hidden"/>
  563. <col ref="amaw_langflag" visibility="hidden"/>
  564. <col disabled="true" ref="amaw_answreqno" type="output" visibility="hidden"/>
  565. <col ref="amaw_answtitl" visibility="hidden"/>
  566. <col disabled="true" ref="amaw_answcnts" type="input"/>
  567. <col disabled="true" ref="amaw_seq" type="input" maxlength="2"/>
  568. <col checkvalue="Y,N" disabled="true" ref="amaw_defaulyn" type="checkbox"/>
  569. <col disabled="true" ref="amaw_addqest1" type="input"/>
  570. <col disabled="true" ref="amaw_addqest2" type="input"/>
  571. <col disabled="true" ref="amaw_addqest3" type="input"/>
  572. <col checkvalue="Y,N" disabled="true" ref="amaw_summyn" type="checkbox"/>
  573. <script type="javascript" ev:event="onclick">
  574. <![CDATA[
  575. ]]>
  576. </script>
  577. </datagrid>
  578. <button id="button2" class="btn2_letter4" style="left:985px; top:55px; width:64px; height:19px; ">
  579. <caption>전체선택</caption>
  580. <script type="javascript" ev:event="DOMActivate">
  581. <![CDATA[
  582. var chk = "";
  583. if(model.getValue("/root/main/list/amqblist/itemuseyn" ) == "Y"){
  584. chk = "N";
  585. }else{
  586. chk = "Y";
  587. }
  588. for( var i = 1 ; i <= getNodesetCount("/root/main/list/amqblist") ; i++){
  589. model.setValue("/root/main/list/amqblist['"+ i +"']/itemuseyn" , chk);
  590. }
  591. grd_amqb.refresh();
  592. ]]>
  593. </script>
  594. </button>
  595. </group>
  596. </xhtml:body>
  597. </xhtml:html>